//
//  RZQFindWebViewController.m
//  LastOne
//
//  Created by dllo on 15/11/4.
//  Copyright © 2015年 sc. All rights reserved.
//

#import "RZQFindWebViewController.h"
#import "FitHeader.h"
#import "HTTPMethod.h"
#import "GiFHUD.h"
@interface RZQFindWebViewController ()<UIWebViewDelegate>

//@property(nonatomic, strong)UICollectionView *collectionView;

@property(nonatomic, strong)UIWebView *webView;





@end

@implementation RZQFindWebViewController


-(void)viewDidLoad
{
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor whiteColor];
    _webView = [[UIWebView alloc]initWithFrame:CGRectMake(0, 0 * FitHeight, ScreenWidth, ScreenHeight - 113 *FitHeight)];
    
    _webView.delegate = self;
    [self.view addSubview:_webView];
    [GiFHUD setGifWithImageName:@"loading.gif"];
    
    
    [GiFHUD show];
    NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"http://app.qdaily.com/app/articles/%ld.html", _flag]];
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    [_webView loadRequest:request];
    
    _webView.scrollView.bounces = NO;
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    [self.view addSubview:_webView];
    
}

- (void)webViewDidFinishLoad:(UIWebView *)webView
{
    [GiFHUD dismiss];
}





- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
